//package com.ajz.config.jwt;
//
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import org.springframework.security.core.AuthenticationException;
//import org.springframework.security.web.AuthenticationEntryPoint;
//import org.springframework.stereotype.Component;
///**
// * 
// * <p> jwt验证不通过返回401</p>
// *
// * @author xyj
// * @date 2018年11月2日
// */
//@Component
//public class EntryPointUnauthorizedHandler implements AuthenticationEntryPoint{
//	 @Override
//	    public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException e) {
//	        response.setHeader("Access-Control-Allow-Origin", "*");
//	        response.setStatus(401);
//	    }
//}
